// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import fastClick from 'fastclick'
import VueLazyload from 'vue-lazyload'
import {store} from './store/index.js'
import {Toast,showModal} from './common/js/model'
import 'babel-polyfill'
import 'styles/reset.css'
import 'styles/border.css'
import 'styles/iconfont/iconfont.css'

Vue.config.productionTip = false
Vue.use(Toast)  //使用自建模型
Vue.use(showModal) 
Vue.use(VueLazyload, {
  preLoad: 1.3,
  error: '../../../static/noExit.png',
  loading: '../../../static/default.png',
  attempt: 1
})  //图片使用懒加载

//fastClick.attach(document.body)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
